<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="java.util.Collection, foot.stateless.TournoiLocal"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>detail Equipe</title>

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="css/jquery.jOrgChart.css" />
<link rel="stylesheet" href="css/foot.css" />
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">FootMassonMonedierePerrin</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="?action=accueil">Accueil</a></li>
            <li><a href="?action=admin">Administration</a></li>
          </ul>
        </div>
      </div>
    </div>
	<div class=" starter-template container">
		<h1>Joueurs de l'equipe</h1>
		<h2>${sessionScope.labonneequipe.nomEquipe}</h2>
		<table class="table list table-striped table-bordered">
			<thead>
				<tr>
					<th class="list">Nom du Joueur</th>
					<th class="list">Prénom du Joueur</th>
				</tr>
			</thead>

			<c:if test="${not empty sessionScope.labonneequipe}">
				<c:forEach var="joueurs"
					items="${sessionScope.labonneequipe.lesJoueurs}">
					<tr>
						<td>${joueurs.nom}</td>
						<td>${joueurs.prenom}</td>
					</tr>
				</c:forEach>
			</c:if>

			<c:if test="${empty sessionScope.labonneequipe}">
				<td colspan="2">aucune équipe enregistrée</td>
			</c:if>
		</table>
	</div>



	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="js/jquery.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="js/bootstrap.min.js"></script>
</body>

</html>